<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>jquery源码解析视频78-1</title>
  <script src="../jquery-2.0.3.js"></script>
</head>

<body>
  <!-- <div>
    div
    <span>span
      <p>p</p>
    </span>
  </div> -->

  <div>div</div>
  <span>span</span>
  <p>p</p>
  <h1>h1</h1>

  <script>
    $(function () {
        // $("p").parents().css("border","1px solid red");
        // $("p").parentsUntil("body").css("border","1px solid red");
        // $("span").siblings().css("background", "red");
        // $("body").children().css("background", "red");
        // console.log($("body").children());
        // console.log($("body").contents());
    });
  </script>
</body>

</html>